//alert ("hop");

function initMail(){

var field=document.auth.mail;
if (field.value == "Email")
 field.value = "";
}

function initMDP(){

var field=document.auth.MDP;
if (field.value == "******")
 field.value = "";
}



function verifMail(){

var field=document.auth.mail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifMDP(){

var field=document.auth.MDP;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function valid(){

var OK=verifMail();
OK=verifMdp && OK;
return OK;

}












function initMail2(){

var field=document.inscrp.mail;
if (field.value == "Email")
 field.value = "";
}

function initMDP2(){

var field=document.inscrp.mdp;
if (field.value == "******")
 field.value = "";
}

function initTel(){

var field=document.inscrp.tel;
if (field.value == "Tel")
 field.value = "";
}

function initConfMDP()
{
  var field=document.inscrp.confMdp;
if (field.value == "******")
 field.value = "";

}

function initConfMail()
{
  var field=document.inscrp.confmail;
if (field.value == "Email")
 field.value = "";

}

function initNom()
{
  var field=document.inscrp.nom;
if (field.value == "Nom")
 field.value = "";

}

function initAdresse()
{
  var field=document.inscrp.adresse;
if (field.value == "Adresse")
 field.value = "";
}

function initPrenom()
{
  var field=document.inscrp.prenom;
if (field.value == "Prenom")
 field.value = "";
}

function initCp()
{
  var field=document.inscrp.cp;
if (field.value == "Prenom")
 field.value = "";
}

function initVille()
{
  var field=document.inscrp.ville;
if (field.value == "Prenom")
 field.value = "";
}




function verifMail2(){

var field=document.inscrp.mail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifTel(){

var field=document.inscrp.tel;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifAdresse(){

var field=document.inscrp.adresse;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifCp(){

var field=document.inscrp.cp;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifVille(){

var field=document.inscrp.ville;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifNom(){

var field=document.inscrp.nom;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifPrenom(){

var field=document.inscrp.prenom;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifConfMail(){

var field=document.inscrp.confmail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifConfMDP(){

var field=document.inscrp.confMdp;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifMDP2(){

var field=document.inscrp.mdp;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function valid2(){

var OK=verifMail2();
OK=verifMDP2() && verifconfMDP() && verifConfMail() && verifAdresse() && verifCp() && verifVille() && verifNom() && verifPrenom() && OK;
return OK;

}


















function verifNom3(){

var field=document.modd.nom;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifPrenom3(){

var field=document.modd.prenom;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifAdresse3(){

var field=document.modd.adresse;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifCp3(){

var field=document.modd.cp;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifVille3(){

var field=document.modd.ville;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifTel3(){

var field=document.modd.tel;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifMail3(){

var field=document.modd.mail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}

function verifConfMail3(){

var field=document.modd.confmail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;
}


function valid3(){

var OK=verifNom3();
OK=verifPrenom3() && verifAdresse3() && verifCp3() && verifVille3() && verifTel3() && verifMail3()&& verifConfMail3() && OK;
return OK;

}


